#pragma once
#include "ChannelDefine.h"
#include <string>

#define MAX_ZONE_COUNT 1024*8
#define MAX_ZONE_CONNECT_TIME_SEC   60000  //客户端连接zone的最大时间间隔(1分钟,这里单位ms)
#define MAX_CENTER_LOGIN_TIME_SEC 60000  //客户端登陆center的最大时间间隔(1分钟,单位ms)

std::string g_MakeAccount(const std::string& channelID, const std::string& userID);
bool        g_MakeAccount(const std::string& channelID, const std::string& userID, char* account, size_t length);
std::string g_MakeAccount(std::string& plamltStr, uint32_t channelId);
std::string g_MakeMd5(uint32_t uid, uint64_t timeStamp);
std::string g_MakeConnectZoneMd5(uint32_t uid, uint64_t timeStamp);

uint64_t    g_MakeRoleDBCid(uint32_t zid, uint64_t count);
std::string g_TransToLower(std::string str);


//获取出生配置
const RoleBornCfgInfo *g_GetRoleBornCfg(uint8_t byProf, uint8_t bySex);
